<%@ include file="/includes/header.jsp"%>

<!-- Main content wrapper -->
<div class="wrapright">
	<!-- Main content goes here -->
	<div class="right">
		<h2>Adicionar Paciente</h2>

		<!-- Pacients list -->
		<table class="selectList">
		<tr>
			<th>Nome</th>
			<th>RG</th>
			<th>Aniversario</th>
			<th> </th>
		</tr>
			<c:forEach var="p" items="${ pacientes }">
				<tr>
					<form action="<c:url value='/seguranca/medico/adicionaPaciente' />"
						method="post">
						<td>${ p.nome }</td>
						<td>${ p.RG }</td>
						<td>${ p.aniversario }</td>
						<td><input type="hidden" name="escolha" value="${ p.email }" />
							<input type="submit" value="adiciona" /></td>
					</form>
				</tr>
			</c:forEach>
		</table>
	</div>
	<!-- right end -->
</div>
<!-- wrapright end -->

<%@ include file="/includes/menuMedico.jsp"%>
<%@ include file="/includes/footer.jsp"%>